package com.security.dataprocess.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 环保-摄像头信息表
 * </p>
 *
 * @author H
 * @since 2022-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CameraInfo对象", description="摄像头信息表")
public class CameraInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "摄像头id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "camera_index_code")
    private String cameraIndexCode;

    @ApiModelProperty(value = "状态，1:为最新更新的状态，当前正在使用，2：为上次更新的状态， 每次同步前将先state为2的删除， 将state为1的记录更新为2，重新插入新的记录")
    private Integer updateState;

    @ApiModelProperty(value = "企业id")
    private Integer enterpriseId;

    @ApiModelProperty(value = "仓库id")
    private Integer warehouseId;

    @ApiModelProperty(value = "摄像头类型(1 公安摄像头 2 交警摄像头 3 危废仓库摄像头 4AR摄像头 5其他摄像头 6企业摄像头 7雨水排口)")
    private Integer cameraType;

    @ApiModelProperty(value = "摄像头状态(1 在线 2 离线)")
    private Integer cameraStatus;

    @ApiModelProperty(value = "摄像头地址")
    private String cameraAddress;

    @ApiModelProperty(value = "所属网格")
    private String gridId;

    @ApiModelProperty(value = "摄像头描述")
    private String cameraDescription;

    @ApiModelProperty(value = "摄像头名")
    private String cameraName;

    @ApiModelProperty(value = "视频分析流地址")
    private String analyseStream;

    @ApiModelProperty(value = "原始流地址")
    private String stream;

    @ApiModelProperty(value = "是否删除(0 未删除 1 已删除)")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "封闭区id")
    private String closedManagementId;

    @TableField("ksUrl")
    private String ksUrl;

    @TableField("storeUrl")
    private String storeUrl;

    @TableField("channelType")
    private String channelType;

    @TableField("channelNo")
    private String channelNo;

    private String port;

    private String ip;

    @TableField("deviceIndexCode")
    private String deviceIndexCode;


}
